package com.vhall.component.entity.goods.goods;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.vhall.component.framework.common.annotation.ParamName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * @author guoxin.wang
 * @date 2021/10/12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GoodsConsoleListReqVO implements Serializable {

    private static final long serialVersionUID = 2837941691096531206L;

    /**
     * 关键字，名称或者id
     */
    private String keyword;

    /**
     * 商品上下架状态;0=下架 1=上架 ;-1 查询全部
     */
    @ParamName(value = "load_or_unload")
    @JsonProperty(value = "load_or_unload")
    private Integer loadOrUnload;

    /**
     * 页码
     */
    @ParamName("page")
    @JsonProperty("page")
    @Min(value = 1, message = "page参数不允许小于1！")
    private Integer page = 1;

    /**
     * 每页数量
     */
    @ParamName("page_size")
    @JsonProperty("page_size")
    @Min(value = 1, message = "page_size参数不允许小于1！")
    private Integer pageSize = 10;

    /**
     * 房间号
     */
    @ParamName(value = "room_id")
    @JsonProperty(value = "room_id")
    private String roomId;

}
